<?php get_header(); ?>
	<div id="conteudo">
		<div id="artigos">
			<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
				<div class="artigo">
					<?php
					$thumb_id = get_post_thumbnail_id();
					$thumb_url = wp_get_attachment_image_src($thumb_id,'banner_post', true);
					?>
					<a href="<?php the_permalink() ?>">
					<div style="margin-top:70px; width: 652px; height: 250px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; background: url(<?php echo $thumb_url[0]; ?>) center;">
					</div>
					<h2><?php the_title(); ?></a></h2>
					<p style="color:#d35400"><?php the_time('d.m.Y') ?> / POR <span class="post_by"><?php the_author() ?></span> <?php edit_post_link('(Editar)'); ?></p>
					<br><hr color="#cecece" size="1">
				</div>
			<?php endwhile?>
				<div class="navegacao">
					<div class="recentes"><?php next_posts_link('&laquo; Artigos Anteriores') ?></div>
					<div class="anteriores"><?php previous_posts_link('Artigos Recentes &raquo;') ?></div>
				</div>
			<?php else: ?>
				<div class="artigo">
					<h2>Nada Encontrado</h2>
					<p>Erro 404</p>
					<p>Lamentamos mas não foram encontrados artigos.</p>
				</div>
			<?php endif; ?>

		</div>

		<?php get_sidebar(); ?>
	</div>
<?php get_footer(); ?>